package com.lovejes.cuniao.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the cn_busdt table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="cn_busdt"
 */

public abstract class BaseCnBusdt  implements Serializable {

	public static String REF = "CnBusdt";
	public static String PROP_REMARK = "Remark";
	public static String PROP_USERMAX = "Usermax";
	public static String PROP_ENDTIME = "Endtime";
	public static String PROP_FRI = "Fri";
	public static String PROP_WED = "Wed";
	public static String PROP_MON = "Mon";
	public static String PROP_BUSID = "Busid";
	public static String PROP_SUN = "Sun";
	public static String PROP_USERMIN = "Usermin";
	public static String PROP_TUE = "Tue";
	public static String PROP_SAT = "Sat";
	public static String PROP_THU = "Thu";
	public static String PROP_ISHDAY = "Ishday";
	public static String PROP_ID = "Id";
	public static String PROP_MONEY = "Money";
	public static String PROP_FLAG = "Flag";


	// constructors
	public BaseCnBusdt () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseCnBusdt (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String busid;
	private java.util.Date endtime;
	private java.lang.String money;
	private java.lang.Integer usermin;
	private java.lang.Integer usermax;
	private java.lang.String mon;
	private java.lang.String tue;
	private java.lang.String wed;
	private java.lang.String thu;
	private java.lang.String fri;
	private java.lang.String sat;
	private java.lang.String sun;
	private java.lang.String ishday;
	private java.lang.String remark;
	private java.lang.String flag;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: BUSID
	 */
	public java.lang.String getBusid () {
		return busid;
	}

	/**
	 * Set the value related to the column: BUSID
	 * @param busid the BUSID value
	 */
	public void setBusid (java.lang.String busid) {
		this.busid = busid;
	}



	/**
	 * Return the value associated with the column: ENDTIME
	 */
	public java.util.Date getEndtime () {
		return endtime;
	}

	/**
	 * Set the value related to the column: ENDTIME
	 * @param endtime the ENDTIME value
	 */
	public void setEndtime (java.util.Date endtime) {
		this.endtime = endtime;
	}



	/**
	 * Return the value associated with the column: MONEY
	 */
	public java.lang.String getMoney () {
		return money;
	}

	/**
	 * Set the value related to the column: MONEY
	 * @param money the MONEY value
	 */
	public void setMoney (java.lang.String money) {
		this.money = money;
	}



	/**
	 * Return the value associated with the column: USERMIN
	 */
	public java.lang.Integer getUsermin () {
		return usermin;
	}

	/**
	 * Set the value related to the column: USERMIN
	 * @param usermin the USERMIN value
	 */
	public void setUsermin (java.lang.Integer usermin) {
		this.usermin = usermin;
	}



	/**
	 * Return the value associated with the column: USERMAX
	 */
	public java.lang.Integer getUsermax () {
		return usermax;
	}

	/**
	 * Set the value related to the column: USERMAX
	 * @param usermax the USERMAX value
	 */
	public void setUsermax (java.lang.Integer usermax) {
		this.usermax = usermax;
	}



	/**
	 * Return the value associated with the column: MON
	 */
	public java.lang.String getMon () {
		return mon;
	}

	/**
	 * Set the value related to the column: MON
	 * @param mon the MON value
	 */
	public void setMon (java.lang.String mon) {
		this.mon = mon;
	}



	/**
	 * Return the value associated with the column: TUE
	 */
	public java.lang.String getTue () {
		return tue;
	}

	/**
	 * Set the value related to the column: TUE
	 * @param tue the TUE value
	 */
	public void setTue (java.lang.String tue) {
		this.tue = tue;
	}



	/**
	 * Return the value associated with the column: WED
	 */
	public java.lang.String getWed () {
		return wed;
	}

	/**
	 * Set the value related to the column: WED
	 * @param wed the WED value
	 */
	public void setWed (java.lang.String wed) {
		this.wed = wed;
	}



	/**
	 * Return the value associated with the column: THU
	 */
	public java.lang.String getThu () {
		return thu;
	}

	/**
	 * Set the value related to the column: THU
	 * @param thu the THU value
	 */
	public void setThu (java.lang.String thu) {
		this.thu = thu;
	}



	/**
	 * Return the value associated with the column: FRI
	 */
	public java.lang.String getFri () {
		return fri;
	}

	/**
	 * Set the value related to the column: FRI
	 * @param fri the FRI value
	 */
	public void setFri (java.lang.String fri) {
		this.fri = fri;
	}



	/**
	 * Return the value associated with the column: SAT
	 */
	public java.lang.String getSat () {
		return sat;
	}

	/**
	 * Set the value related to the column: SAT
	 * @param sat the SAT value
	 */
	public void setSat (java.lang.String sat) {
		this.sat = sat;
	}



	/**
	 * Return the value associated with the column: SUN
	 */
	public java.lang.String getSun () {
		return sun;
	}

	/**
	 * Set the value related to the column: SUN
	 * @param sun the SUN value
	 */
	public void setSun (java.lang.String sun) {
		this.sun = sun;
	}



	/**
	 * Return the value associated with the column: ISHDAY
	 */
	public java.lang.String getIshday () {
		return ishday;
	}

	/**
	 * Set the value related to the column: ISHDAY
	 * @param ishday the ISHDAY value
	 */
	public void setIshday (java.lang.String ishday) {
		this.ishday = ishday;
	}



	/**
	 * Return the value associated with the column: REMARK
	 */
	public java.lang.String getRemark () {
		return remark;
	}

	/**
	 * Set the value related to the column: REMARK
	 * @param remark the REMARK value
	 */
	public void setRemark (java.lang.String remark) {
		this.remark = remark;
	}


	public java.lang.String getFlag() {
		return flag;
	}

	public void setFlag(java.lang.String flag) {
		this.flag = flag;
	}

	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.cuniao.domain.CnBusdt)) return false;
		else {
			com.lovejes.cuniao.domain.CnBusdt cnBusdt = (com.lovejes.cuniao.domain.CnBusdt) obj;
			if (null == this.getId() || null == cnBusdt.getId()) return false;
			else return (this.getId().equals(cnBusdt.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}